Hope you are enjoying this new edition of the Macintosh Programming Primer. Cartwright and I put a lot of work into it and are looking forward to your comments and feedback. If you get a chance, stop by the Learn Programming forum on CompuServe and drop us a line. To get there, type GO MACDEV, then check out Section 11.
Based on the letters we’ve received so far, we’ve put together a list of changes to this first printing (see below). Please pass this list on to anyone you know who may have purchased this first printing of the second edition. They’ll thank you for it.
Well, that’s about it. Thanks again for your support.
Your faithful authors,
Dave Mark and Cartwright Reed
DMark on America Online
----------------------------------
Chapter 4, page 190 or so: The HighLevelEvent-Aware SIZE flag must be set in order for EventTrigger to run properly.
Chapter 4, Page 150 and bottom page 165, EventTracker:
thePart should be declared as a short.
Chapter 6, Reminder: These few code changes fix a bug that cause Reminder to break under System 7.1...
1) Add this struct definition just before function prototypes:
struct PopupPrivateData
{
MenuHandle mHandle;
short mID;
char mPrivate[1];
};
2) Add this line to the variable declaration list in the function CopyDialogToReminder():
struct PopupPrivateData **popupDataHandle;
3) On page 325, replace the second line from the bottom - it currently reads:
menu = GetMHandle( mMinutes );
with this code:
popupDataHandle = (struct PopupPrivateData **)
((**(ControlHandle)itemHandle).contrlData);
menu = (**popupDataHandle).mHandle;
Chapter 6, Reminder: When the Edit MENU resource is set up, make sure the “Entire Menu Enabled” check-box is unchecked.